import { Routes, RouterModule }  from '@angular/router';
import {SysComponent} from "./sys.component";


 const routes:Routes = [
  {
    path: '',
    component: SysComponent,
    children: [
      { path: 'account', loadChildren: './account/account.module#AccountModule' },
      { path: 'company', loadChildren: './company/company.module#CompanyModule' },
      { path: 'competence', loadChildren: './competence/competence.module#CompetenceModule' },
      { path: 'product', loadChildren: './product/product.module#ProductModule' },
      { path: 'groups', loadChildren: './groups/groups.module#GroupsModule' },
      { path: 'role', loadChildren: './role/role.module#RoleModule' }
    ]
  }
];

export const SysRouting = RouterModule.forChild(routes);
